import os
# 获取当前文件的的目录
print(os.path.dirname(__file__))
# 获取当前文件的父目录
parent_path = os.path.dirname(os.path.dirname(__file__))
print(parent_path)

# 获取配置文件路径                   父目录+当前目录和文件名字
elementLocationPath = os.path.join(parent_path,u'ConfigFile\elementLocation.ini')
print(elementLocationPath)

# chrome 驱动路径
chromePath = r'E:\Python\chromedriver.exe'
# 测试数据文件路径
testdata_path= os.path.join(parent_path,u'TestData\\testlogin1.xlsx')
print(testdata_path)
# testcase 路径
testcasePath = os.path.join(parent_path,u'Scritps')
# reports 路径
reportPath = os.path.join(parent_path,u'reports\\')
# Log日志路径
LogPath = os.path.join(parent_path,u'ConfigFile\\logging')
print(LogPath)